InitPersistentObjectFromStorage
TheInitPersistentObjectFromStorage
method initializes this re-created persistent object from its stored data.
void InitPersistentObjectFromStorage ( in ODStorageUnit storageUnit);
storageUnit
- A reference to a storage unit of this persistent object.
DISCUSSION
Your part editor should never call this method directly; it is called automatically whenever a persistent object is re-created from stored data. Every existing OpenDoc subclass ofODPersistentObject
(includingODPart
) has anInitClassFromStorage
method to initialize an object of that class from its stored data; that method calls the inheritedInitPersistentObjectFromStorage
method and then reads any data that was previously written by theExternalize
method when the object was stored. The object's factory method calls the object'sInitClassFromStorage
method when re-creating the object from its stored data.For example, the
ODFrame
class has a privateInitFrameFromStorage
method. When you call the draft'sAcquireFrame
method to re-create a frame, that factory method calls the re-created frame'sInitFrameFromStorage
method.SEE ALSO
TheODPart::InitPartFromStorage
method (page 529).
TheODPersistentObject::Externalize
method (page 558).
TheODPersistentObject::InitPersistentObject
method (page 560).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help